Skip to main content

All Questions

Tagged with
0votes
0answers
58views

Linux Server swap memory problem

I have the same problem on all servers running Java processes. I have lots of available memory. But my swap is full of Java-related pages. But the system never cleans its swap, Java pages stay there &...
Eduardo's user avatar
2votes
1answer
627views

When SIGTERM is received by a process, what happens to its children?

I am wondering what happens when a process receives SIGTERM and it has children spawned (e.g. JVM that has /bin/sh commands running). Is there some sort of automatism or does the parent simply exit ...
RokL's user avatar
  • 143
3votes
0answers
517views

Linux: Is there a limit for the number of fork() calls one process goup can issue? (Not per user!)

We have a strange problem on a SuSE Linux Enterprise Server 12.5 system (kernel 4.12.14-122.60), which is the only KVM guest in a simliar KVM host: One service started by systemd starts one program -&...
Stefan Brunthaler's user avatar
0votes
1answer
72views

Can a process share unused memory with others?

I want to run about 200 processes with my experiments. Every of them really needs less than a GB: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24688 rinkman 20 0 ...
Vovin's user avatar
0votes
2answers
3kviews

How to check if a java process in unix is killed?

I have a java application on Unix. This application unexpectedly stops. I am looking for what is the problem. How can I tell in a java process started on Unix, if this process is being killed? (with ...
user1358518's user avatar
1vote
1answer
191views

Keep reverse SSH tunnel opened via java application when the app is stopped

As discussed in the following StackOverflow question I am creating a Java program that starts a reverse SSH tunnel. I have created a script /root/reverse.sh that starts a subshell and creates a ...
PauMAVA's user avatar
0votes
1answer
1kviews

Kill only one Java process by grep

I want to kill this process: root 11870 30.1 21.9 2358848 220980 pts/0 Tl 07:51 0:24 java -jar /opt/bonansa/bonansa.jar If I do : root@localhost:/usr/local/bin# ps -A |grep java 11870 ...
Nuñito Calzada's user avatar
0votes
1answer
295views

JVM memory + dose heap size Xmx values have impact on consuming memory

we have linux redhat machines with service ( service is based on java ) for now service consume 1.5G memory , and the heap size set to Xmx2G let say we increase the heap size to Xmx10G dose this ...
yael's user avatar
  • 13.9k
0votes
1answer
793views

Linux start screen and run a java program and detach it?

I have the following script that should do the following: Stop screen "server" if exists Start screen "server" Run a java program and detach screen. However, when I firstly run the script, the program ...
Ben Berizovsky's user avatar
0votes
1answer
877views

Piping PID into jstack

I've written a command line that effectively extracts the highest CPU java PID thread process from top -H (example code): top -H -n 1 | grep "java" | head -n 1 | cut -d' ' -f1 I want to inspect the ...
SE Does Not Like Dissent's user avatar
3votes
3answers
7kviews

How to get pid number and folder where it works

How I can get PID number and folder where it works? If I run 2 same programs in different folders: /var/www/public_html/first_folder/test.jar <i>(it runs all the time)</i> /var/www/...
K Deis's user avatar
0votes
0answers
551views

<pidof> Command not showing all Java processes

I noticed that the command in my case, is not listing all Java processes. If I run pidof java I get one single pid as a response. On the other hand, if I run ps aux | grep [j]ava I get a three ...
chromechris's user avatar
0votes
1answer
482views

kill a java process after it was running for one hour

I need a script that will murder java processes that have been on for more than one hour. So I am trying this timeout -k 10s nohup cpulimit -l 40 -- java -jar file.jar Any idea why this isn't ...
Web Master's user avatar
1vote
2answers
2kviews

How to start the killed java process with its PID?

How to start the killed java process with its PID in Linux?
yogi's user avatar
3votes
2answers
5kviews

foolproof way to detect if java process is running

I have a java process that runs continually that sometimes, for reasons I have yet to fully debug, craps out. So, I also have a cron job that looks for the process every 5 minutes and if it finds the ...
Sabrina S's user avatar

153050per page
close